package nio.day01;

import java.nio.ByteBuffer;
import java.nio.CharBuffer;

public class Demo01 {
    public static void main(String[] args) {
        CharBuffer buf = CharBuffer.allocate(5);
        byte [] data = new byte[]{1,2,3,4,5};
        ByteBuffer buffer = ByteBuffer.wrap(data);
        System.out.println(buffer);
        System.out.println(buf);
    }
}
